<%--
  Created by IntelliJ IDEA.
  User: lupf
  Date: 2016/4/27
  Time: 16:10
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file=".././common/taglibs.jsp" %>
<html>
<head>
    <title>Title</title>
    <script src="${ctx}/js/views/specially/personRiskInfoApp.js"></script>
</head>
<body ng-app="myApp" style="overflow:scroll;overflow-x:hidden">
<core:import url="../common/pageHead.jsp">
    <core:param name="title" value="个人风险信息上报"/>
</core:import>
<div ng-controller="queryCtrl" class="container-fluid">
    <form id="queryForm" name="queryForm" action="${ctx}/riskInfo/personRiskInfo/search" autocomplete="off">
        <table class="table table-bordered table-condensed">
            <tr>
                <td class="text-right">
                    客户姓名
                </td>
                <td>
                    <input type="text" ng-model="vm.queryBean.cusName" class="{{vm.constant.inputClass}}">
                </td>

                <td class="text-right">
                    风险类型
                </td>
                <td>
                    <%--<input type="text" ng-model="vm.queryBean.roleType" class="{{vm.constant.inputClass}}">--%>
                    <select ng-model="vm.queryBean.riskType" class="{{vm.constant.inputClass}}"
                            ng-options="key as value for (key,value) in vm.cache.PERSONAL_RISK_TYPE">
                        <option value="">请选择</option>
                    </select>
                </td>
                <td class="text-right">
                    风险事件发生渠道
                </td>
                <td>
                    <%--<input type="text" ng-model="vm.queryBean.roleType" class="{{vm.constant.inputClass}}">--%>
                    <select ng-model="vm.queryBean.occurchan" class="{{vm.constant.inputClass}}"
                            ng-options="key as value for (key,value) in vm.cache.RISK_EVENT_CHANNEL">
                        <option value="">请选择</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="text-right">
                    手机号码
                </td>
                <td>
                    <input type="text" ng-model="vm.queryBean.mobileNo" class="{{vm.constant.inputClass}}">
                </td>

                <td class="text-right">
                    信息级别
                </td>
                <td>
                    <select ng-model="vm.queryBean.level" class="{{vm.constant.inputClass}}"
                            ng-options="key as value for (key,value) in vm.cache.INFORMATION_LEVEL">
                        <option value="">请选择</option>
                    </select>
                </td>
                <td class="text-right">
                    处理状态
                </td>
                <td>
                    <%--<input type="text" ng-model="vm.queryBean.roleType" class="{{vm.constant.inputClass}}">--%>
                    <select ng-model="vm.queryBean.status" class="{{vm.constant.inputClass}}"
                            ng-options="key as value for (key,value) in vm.cached.SPECIALLY_AUDIT_STATUS">
                        <option value="">请选择</option>
                    </select>
                </td>
            </tr>
            <tr align="center">
                <td colspan="6">
                    <button type="button" ng-click="vm.queryDetail()" class="btn btn-default">查询</button>
                    <button type="button" ng-click="vm.resetForm()" class="btn btn-default">重置</button>
                </td>
            </tr>
        </table>
    </form>

    <div>
        <p class="btn-group">
            <button ng-click="vm.addItem()"><i class="glyphicon glyphicon-plus"></i></button>
        </p>
        <table table-detail>
            <thead>
            <tr>
                <th>
                    <input type="checkbox" name="checkAll">
                </th>
                <th>客户姓名</th>
                <th>身份证号</th>
                <th>银行帐/卡号</th>
                <th>开户行</th>
                <th>收款银行帐/卡号</th>
                <th>收款账/卡号开户行</th>
                <th>风险事件发生渠道</th>
                <th>风险类型</th>
                <th>信息级别</th>
                <th>有效期</th>
                <th>处理状态</th>
                <th>上传人</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody ng-repeat="bean in vm.pagination.list track by $index">
            <tr>
                <td>
                    <input name="check" type="checkbox" ng-model="bean._checked">
                </td>
                <td>{{bean.cusName}}</td>
                <td>{{bean.docCode}}</td>
                <td>{{bean.bankNo}}</td>
                <td>{{bean.openBank}}</td>
                <td>{{bean.recBankNo}}</td>
                <td>{{bean.recOpenBank}}</td>
                <td>{{vm.cache.RISK_EVENT_CHANNEL[bean.occurchan]}}</td>
                <td>{{vm.cache.PERSONAL_RISK_TYPE[bean.riskType]}}</td>
                <td>{{vm.cache.INFORMATION_LEVEL[bean.level]}}</td>
                <td>{{bean.validDate | date:'yyyy-MM-dd'}}</td>
                <td>{{vm.cached.SPECIALLY_AUDIT_STATUS[bean.status]}}</td>
                <td>{{bean.repPerson}}</td>
                <td><button  ng-click="vm.queryPersonRiskDetail(bean)">查看</button></td>
            </tbody>
        </table>
    </div>

    <core:import url="../common/pageFoot.jsp"/>
</div>
<core:import url="../common/nav.jsp"/>
</body>
</html>
